package com.training.api.service;

import com.training.api.repository.AppVersionRepository;
import com.training.bean.AppVersion;
import com.training.utils.FileUploadUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Date;
import java.util.Optional;

@Service("apiAppVersionService")
public class AppVersionService {
    
    @Autowired
    private AppVersionRepository appVersionRepository;
    
    /**
     * 获取最新的App版本信息
     * @return 最新的App版本信息
     */
    public AppVersion getLatestVersion() {
        return appVersionRepository.findLatestVersion();
    }
}